package cn.lizemin.service.impl;

import cn.lizemin.dao.UserDao;
import cn.lizemin.entity.User;
import cn.lizemin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author lzm
 * @version 1.0
 * @description: TODO
 * @date 2022/1/9 16:56
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }
}
